# QueryInst

Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 25400) END FROM WidgetInst WHERE WidgetInstId = 25400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 25401) END FROM WidgetInst WHERE WidgetInstId = 25401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 25400) END FROM WidgetInst WHERE WidgetInstId = 25400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 25401) END FROM WidgetInst WHERE WidgetInstId = 25401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 25432) END FROM WidgetInst WHERE WidgetInstId = 25432) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 25433) END FROM WidgetInst WHERE WidgetInstId = 25433) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 25400) END FROM WidgetInst WHERE WidgetInstId = 25400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 25401) END FROM WidgetInst WHERE WidgetInstId = 25401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25439;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 25400) END FROM WidgetInst WHERE WidgetInstId = 25400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25440;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 25401) END FROM WidgetInst WHERE WidgetInstId = 25401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 25432) END FROM WidgetInst WHERE WidgetInstId = 25432) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25442;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 25433) END FROM WidgetInst WHERE WidgetInstId = 25433) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25443;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 25400) END FROM WidgetInst WHERE WidgetInstId = 25400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25446;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 25401) END FROM WidgetInst WHERE WidgetInstId = 25401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 25400) END FROM WidgetInst WHERE WidgetInstId = 25400) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 25401) END FROM WidgetInst WHERE WidgetInstId = 25401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25522) END FROM WidgetInst WHERE WidgetInstId = 25522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25523) END FROM WidgetInst WHERE WidgetInstId = 25523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25522) END FROM WidgetInst WHERE WidgetInstId = 25522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25523) END FROM WidgetInst WHERE WidgetInstId = 25523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25522) END FROM WidgetInst WHERE WidgetInstId = 25522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25523) END FROM WidgetInst WHERE WidgetInstId = 25523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25554) END FROM WidgetInst WHERE WidgetInstId = 25554) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25555) END FROM WidgetInst WHERE WidgetInstId = 25555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25554) END FROM WidgetInst WHERE WidgetInstId = 25554) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25555) END FROM WidgetInst WHERE WidgetInstId = 25555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25554) END FROM WidgetInst WHERE WidgetInstId = 25554) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25555) END FROM WidgetInst WHERE WidgetInstId = 25555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25565;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25594) END FROM WidgetInst WHERE WidgetInstId = 25594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25595) END FROM WidgetInst WHERE WidgetInstId = 25595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25594) END FROM WidgetInst WHERE WidgetInstId = 25594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25595) END FROM WidgetInst WHERE WidgetInstId = 25595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25594) END FROM WidgetInst WHERE WidgetInstId = 25594) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25595) END FROM WidgetInst WHERE WidgetInstId = 25595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25609;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25634) END FROM WidgetInst WHERE WidgetInstId = 25634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25636;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25635) END FROM WidgetInst WHERE WidgetInstId = 25635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25637;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25634) END FROM WidgetInst WHERE WidgetInstId = 25634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25635) END FROM WidgetInst WHERE WidgetInstId = 25635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25634) END FROM WidgetInst WHERE WidgetInstId = 25634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25635) END FROM WidgetInst WHERE WidgetInstId = 25635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25646) END FROM WidgetInst WHERE WidgetInstId = 25646) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25634) END FROM WidgetInst WHERE WidgetInstId = 25634)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25648;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25647) END FROM WidgetInst WHERE WidgetInstId = 25647) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25635) END FROM WidgetInst WHERE WidgetInstId = 25635)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25649;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25646) END FROM WidgetInst WHERE WidgetInstId = 25646) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25634) END FROM WidgetInst WHERE WidgetInstId = 25634)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25647) END FROM WidgetInst WHERE WidgetInstId = 25647) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25635) END FROM WidgetInst WHERE WidgetInstId = 25635)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25646) END FROM WidgetInst WHERE WidgetInstId = 25646) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25634) END FROM WidgetInst WHERE WidgetInstId = 25634)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25656;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 25647) END FROM WidgetInst WHERE WidgetInstId = 25647) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 25635) END FROM WidgetInst WHERE WidgetInstId = 25635)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25664) END FROM WidgetInst WHERE WidgetInstId = 25664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25665) END FROM WidgetInst WHERE WidgetInstId = 25665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 25664) END FROM WidgetInst WHERE WidgetInstId = 25664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25672;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 25665) END FROM WidgetInst WHERE WidgetInstId = 25665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 25664) END FROM WidgetInst WHERE WidgetInstId = 25664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 25665) END FROM WidgetInst WHERE WidgetInstId = 25665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 25664) END FROM WidgetInst WHERE WidgetInstId = 25664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 25665) END FROM WidgetInst WHERE WidgetInstId = 25665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25706;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25712) END FROM WidgetInst WHERE WidgetInstId = 25712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25713) END FROM WidgetInst WHERE WidgetInstId = 25713) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 25712) END FROM WidgetInst WHERE WidgetInstId = 25712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25720;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 25713) END FROM WidgetInst WHERE WidgetInstId = 25713) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 25712) END FROM WidgetInst WHERE WidgetInstId = 25712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 25713) END FROM WidgetInst WHERE WidgetInstId = 25713) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 25712) END FROM WidgetInst WHERE WidgetInstId = 25712) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 25713) END FROM WidgetInst WHERE WidgetInstId = 25713) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 25756) END FROM WidgetInst WHERE WidgetInstId = 25756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25758;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 25757) END FROM WidgetInst WHERE WidgetInstId = 25757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25756) END FROM WidgetInst WHERE WidgetInstId = 25756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25757) END FROM WidgetInst WHERE WidgetInstId = 25757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25756) END FROM WidgetInst WHERE WidgetInstId = 25756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25766;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25757) END FROM WidgetInst WHERE WidgetInstId = 25757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25767;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25756) END FROM WidgetInst WHERE WidgetInstId = 25756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25770;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25757) END FROM WidgetInst WHERE WidgetInstId = 25757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25771;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25756) END FROM WidgetInst WHERE WidgetInstId = 25756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25774;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25757) END FROM WidgetInst WHERE WidgetInstId = 25757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25756) END FROM WidgetInst WHERE WidgetInstId = 25756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 25757) END FROM WidgetInst WHERE WidgetInstId = 25757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 25314) END FROM WidgetInst WHERE WidgetInstId = 25314) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 23242) END FROM WidgetInst WHERE WidgetInstId = 23242)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 25315) END FROM WidgetInst WHERE WidgetInstId = 25315) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 23242) END FROM WidgetInst WHERE WidgetInstId = 23242)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 25786) END FROM WidgetInst WHERE WidgetInstId = 25786) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 25787) END FROM WidgetInst WHERE WidgetInstId = 25787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25789;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25841) END FROM WidgetInst WHERE WidgetInstId = 25841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25842;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 25841) END FROM WidgetInst WHERE WidgetInstId = 25841) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25850) END FROM WidgetInst WHERE WidgetInstId = 25850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25854;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25851) END FROM WidgetInst WHERE WidgetInstId = 25851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25855;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25852) END FROM WidgetInst WHERE WidgetInstId = 25852) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 25853) END FROM WidgetInst WHERE WidgetInstId = 25853) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 25850) END FROM WidgetInst WHERE WidgetInstId = 25850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25862;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 25851) END FROM WidgetInst WHERE WidgetInstId = 25851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 25852) END FROM WidgetInst WHERE WidgetInstId = 25852) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 25853) END FROM WidgetInst WHERE WidgetInstId = 25853) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 25874) END FROM WidgetInst WHERE WidgetInstId = 25874) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25875;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 25874) END FROM WidgetInst WHERE WidgetInstId = 25874) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25877;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25883;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25893;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25895;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25897;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25899;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25901;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25903;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25909;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25911;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25913;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25915;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25917;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25919;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25921;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25927;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 25887) END FROM WidgetInst WHERE WidgetInstId = 25887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25929;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 25889) END FROM WidgetInst WHERE WidgetInstId = 25889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25931;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25933;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25935;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25945;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25947;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25949;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25951;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 25882) END FROM WidgetInst WHERE WidgetInstId = 25882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25953;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 25966) END FROM WidgetInst WHERE WidgetInstId = 25966) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25967;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 25976) END FROM WidgetInst WHERE WidgetInstId = 25976) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25977;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 25979) END FROM WidgetInst WHERE WidgetInstId = 25979) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25980;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 25984) END FROM WidgetInst WHERE WidgetInstId = 25984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25985;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 25984) END FROM WidgetInst WHERE WidgetInstId = 25984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 25987;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 25976) END FROM WidgetInst WHERE WidgetInstId = 25976) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26002;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26016;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26016;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26016;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26016;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26016;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26016;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26017;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26019) END FROM WidgetInst WHERE WidgetInstId = 26019) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26020;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26022;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26034;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26036) END FROM WidgetInst WHERE WidgetInstId = 26036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26037;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26036) END FROM WidgetInst WHERE WidgetInstId = 26036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26040;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26045) END FROM WidgetInst WHERE WidgetInstId = 26045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26045) END FROM WidgetInst WHERE WidgetInstId = 26045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26045) END FROM WidgetInst WHERE WidgetInstId = 26045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26057) END FROM WidgetInst WHERE WidgetInstId = 26057)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26063;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26057) END FROM WidgetInst WHERE WidgetInstId = 26057)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26072;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26073;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26075) END FROM WidgetInst WHERE WidgetInstId = 26075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26076;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26075) END FROM WidgetInst WHERE WidgetInstId = 26075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26059) END FROM WidgetInst WHERE WidgetInstId = 26059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26120) END FROM WidgetInst WHERE WidgetInstId = 26120) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26120) END FROM WidgetInst WHERE WidgetInstId = 26120) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26120) END FROM WidgetInst WHERE WidgetInstId = 26120) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26136) END FROM WidgetInst WHERE WidgetInstId = 26136) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26137;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26136) END FROM WidgetInst WHERE WidgetInstId = 26136) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26139;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26136) END FROM WidgetInst WHERE WidgetInstId = 26136) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26141;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26143;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26156) END FROM WidgetInst WHERE WidgetInstId = 26156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26156) END FROM WidgetInst WHERE WidgetInstId = 26156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26156) END FROM WidgetInst WHERE WidgetInstId = 26156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26161;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26163;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26176) END FROM WidgetInst WHERE WidgetInstId = 26176) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26177;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26176) END FROM WidgetInst WHERE WidgetInstId = 26176) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26179;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26176) END FROM WidgetInst WHERE WidgetInstId = 26176) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26181;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26182) END FROM WidgetInst WHERE WidgetInstId = 26182) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26176) END FROM WidgetInst WHERE WidgetInstId = 26176)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26183;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26182) END FROM WidgetInst WHERE WidgetInstId = 26182) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26176) END FROM WidgetInst WHERE WidgetInstId = 26176)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26185;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26182) END FROM WidgetInst WHERE WidgetInstId = 26182) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26176) END FROM WidgetInst WHERE WidgetInstId = 26176)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26187;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26189;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26191) END FROM WidgetInst WHERE WidgetInstId = 26191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26192;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26191) END FROM WidgetInst WHERE WidgetInstId = 26191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26195;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26191) END FROM WidgetInst WHERE WidgetInstId = 26191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26198;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 26191) END FROM WidgetInst WHERE WidgetInstId = 26191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26209;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26016) END FROM WidgetInst WHERE WidgetInstId = 26016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26215) END FROM WidgetInst WHERE WidgetInstId = 26215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26216;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26215) END FROM WidgetInst WHERE WidgetInstId = 26215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26215) END FROM WidgetInst WHERE WidgetInstId = 26215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26222;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 26215) END FROM WidgetInst WHERE WidgetInstId = 26215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26233;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 26237) END FROM WidgetInst WHERE WidgetInstId = 26237) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26237) END FROM WidgetInst WHERE WidgetInstId = 26237) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26240;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26237) END FROM WidgetInst WHERE WidgetInstId = 26237) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26242;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26237) END FROM WidgetInst WHERE WidgetInstId = 26237) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26244;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26237) END FROM WidgetInst WHERE WidgetInstId = 26237) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26246;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26237) END FROM WidgetInst WHERE WidgetInstId = 26237) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26248;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 177) END FROM WidgetInst WHERE WidgetInstId = 177) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 35) END FROM WidgetInst WHERE WidgetInstId = 35)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26250;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 26252) END FROM WidgetInst WHERE WidgetInstId = 26252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26253;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26260;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26262;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26276;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26278;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26280;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26282;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26284;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26286;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26288;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26290;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26292;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26294;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26296;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26298;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26300;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26302;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26304;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26306;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26308;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26312;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 26272) END FROM WidgetInst WHERE WidgetInstId = 26272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26314;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 26274) END FROM WidgetInst WHERE WidgetInstId = 26274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26316;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26318;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26320;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26322;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26324;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26330;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26334;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26336;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 26267) END FROM WidgetInst WHERE WidgetInstId = 26267) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26338;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 26351) END FROM WidgetInst WHERE WidgetInstId = 26351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26361) END FROM WidgetInst WHERE WidgetInstId = 26361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26362;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 26364) END FROM WidgetInst WHERE WidgetInstId = 26364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26365;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 26369) END FROM WidgetInst WHERE WidgetInstId = 26369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 26369) END FROM WidgetInst WHERE WidgetInstId = 26369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26372;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26361) END FROM WidgetInst WHERE WidgetInstId = 26361) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26387;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26401;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26401;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26401;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26401;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26401;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26401;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26402;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26404) END FROM WidgetInst WHERE WidgetInstId = 26404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26405;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26407;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26413;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 32) END FROM WidgetInst WHERE WidgetInstId = 32) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26416;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26421) END FROM WidgetInst WHERE WidgetInstId = 26421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26422;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26421) END FROM WidgetInst WHERE WidgetInstId = 26421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26430) END FROM WidgetInst WHERE WidgetInstId = 26430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26430) END FROM WidgetInst WHERE WidgetInstId = 26430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26430) END FROM WidgetInst WHERE WidgetInstId = 26430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26440;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26442) END FROM WidgetInst WHERE WidgetInstId = 26442)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26445;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26442) END FROM WidgetInst WHERE WidgetInstId = 26442)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26460) END FROM WidgetInst WHERE WidgetInstId = 26460) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26460) END FROM WidgetInst WHERE WidgetInstId = 26460) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26444) END FROM WidgetInst WHERE WidgetInstId = 26444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26505) END FROM WidgetInst WHERE WidgetInstId = 26505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26506;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26505) END FROM WidgetInst WHERE WidgetInstId = 26505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26508;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26505) END FROM WidgetInst WHERE WidgetInstId = 26505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26510;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26512;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26521) END FROM WidgetInst WHERE WidgetInstId = 26521) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26522;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26521) END FROM WidgetInst WHERE WidgetInstId = 26521) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26521) END FROM WidgetInst WHERE WidgetInstId = 26521) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26541) END FROM WidgetInst WHERE WidgetInstId = 26541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26542;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26541) END FROM WidgetInst WHERE WidgetInstId = 26541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26541) END FROM WidgetInst WHERE WidgetInstId = 26541) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26561) END FROM WidgetInst WHERE WidgetInstId = 26561) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26561) END FROM WidgetInst WHERE WidgetInstId = 26561) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26561) END FROM WidgetInst WHERE WidgetInstId = 26561) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26566;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26567) END FROM WidgetInst WHERE WidgetInstId = 26567) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26561) END FROM WidgetInst WHERE WidgetInstId = 26561)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26567) END FROM WidgetInst WHERE WidgetInstId = 26567) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26561) END FROM WidgetInst WHERE WidgetInstId = 26561)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 26567) END FROM WidgetInst WHERE WidgetInstId = 26567) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 26561) END FROM WidgetInst WHERE WidgetInstId = 26561)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26576) END FROM WidgetInst WHERE WidgetInstId = 26576) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26577;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26576) END FROM WidgetInst WHERE WidgetInstId = 26576) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26580;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26576) END FROM WidgetInst WHERE WidgetInstId = 26576) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26583;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 26576) END FROM WidgetInst WHERE WidgetInstId = 26576) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26594;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26401) END FROM WidgetInst WHERE WidgetInstId = 26401) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26600) END FROM WidgetInst WHERE WidgetInstId = 26600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26600) END FROM WidgetInst WHERE WidgetInstId = 26600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26600) END FROM WidgetInst WHERE WidgetInstId = 26600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 26600) END FROM WidgetInst WHERE WidgetInstId = 26600) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26618;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 26622) END FROM WidgetInst WHERE WidgetInstId = 26622) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26623;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26622) END FROM WidgetInst WHERE WidgetInstId = 26622) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26622) END FROM WidgetInst WHERE WidgetInstId = 26622) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26627;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26622) END FROM WidgetInst WHERE WidgetInstId = 26622) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26629;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26622) END FROM WidgetInst WHERE WidgetInstId = 26622) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 26622) END FROM WidgetInst WHERE WidgetInstId = 26622) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26633;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 177) END FROM WidgetInst WHERE WidgetInstId = 177) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 35) END FROM WidgetInst WHERE WidgetInstId = 35)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26635;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 26637) END FROM WidgetInst WHERE WidgetInstId = 26637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26638;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26654;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26654;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26654;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26654;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26654;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26654;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26655;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26655;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26655;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26655;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26655;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26655;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26656;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26656;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26656;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26656;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26656;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26656;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26657;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26657;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26657;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26657;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26657;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26657;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26658;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26658;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26658;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26658;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26658;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26658;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26659;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26659;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26659;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26659;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26659;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26659;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 26660;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 26660;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 26660;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 26660;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 26660;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 26660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26662;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26664;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26675) END FROM WidgetInst WHERE WidgetInstId = 26675) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26682;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26676) END FROM WidgetInst WHERE WidgetInstId = 26676) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26677) END FROM WidgetInst WHERE WidgetInstId = 26677) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26678) END FROM WidgetInst WHERE WidgetInstId = 26678) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26685;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26679) END FROM WidgetInst WHERE WidgetInstId = 26679) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26686;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26680) END FROM WidgetInst WHERE WidgetInstId = 26680) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26687;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 26681) END FROM WidgetInst WHERE WidgetInstId = 26681) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26688;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26698;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26699;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26740;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26741;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26760;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26764;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26794) END FROM WidgetInst WHERE WidgetInstId = 26794) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26795) END FROM WidgetInst WHERE WidgetInstId = 26795) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26802;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26796) END FROM WidgetInst WHERE WidgetInstId = 26796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26803;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26797) END FROM WidgetInst WHERE WidgetInstId = 26797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26804;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26798) END FROM WidgetInst WHERE WidgetInstId = 26798) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26805;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26799) END FROM WidgetInst WHERE WidgetInstId = 26799) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26806;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26800) END FROM WidgetInst WHERE WidgetInstId = 26800) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26807;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26794) END FROM WidgetInst WHERE WidgetInstId = 26794) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26822;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26795) END FROM WidgetInst WHERE WidgetInstId = 26795) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26796) END FROM WidgetInst WHERE WidgetInstId = 26796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26824;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26797) END FROM WidgetInst WHERE WidgetInstId = 26797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26825;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26798) END FROM WidgetInst WHERE WidgetInstId = 26798) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26826;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26799) END FROM WidgetInst WHERE WidgetInstId = 26799) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26827;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26800) END FROM WidgetInst WHERE WidgetInstId = 26800) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26828;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26845;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26846;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26847;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26848;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26857) END FROM WidgetInst WHERE WidgetInstId = 26857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26858) END FROM WidgetInst WHERE WidgetInstId = 26858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26859) END FROM WidgetInst WHERE WidgetInstId = 26859) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26860) END FROM WidgetInst WHERE WidgetInstId = 26860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26861) END FROM WidgetInst WHERE WidgetInstId = 26861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26862) END FROM WidgetInst WHERE WidgetInstId = 26862) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26863) END FROM WidgetInst WHERE WidgetInstId = 26863) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26870;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26857) END FROM WidgetInst WHERE WidgetInstId = 26857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26858) END FROM WidgetInst WHERE WidgetInstId = 26858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26859) END FROM WidgetInst WHERE WidgetInstId = 26859) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26860) END FROM WidgetInst WHERE WidgetInstId = 26860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26861) END FROM WidgetInst WHERE WidgetInstId = 26861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26862) END FROM WidgetInst WHERE WidgetInstId = 26862) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26863) END FROM WidgetInst WHERE WidgetInstId = 26863) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26857) END FROM WidgetInst WHERE WidgetInstId = 26857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26858) END FROM WidgetInst WHERE WidgetInstId = 26858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26859) END FROM WidgetInst WHERE WidgetInstId = 26859) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26908;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26860) END FROM WidgetInst WHERE WidgetInstId = 26860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26909;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26861) END FROM WidgetInst WHERE WidgetInstId = 26861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26910;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26862) END FROM WidgetInst WHERE WidgetInstId = 26862) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26911;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 26863) END FROM WidgetInst WHERE WidgetInstId = 26863) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26912;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26927;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26928;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26929;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26930;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26931;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26932;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26933;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26941) END FROM WidgetInst WHERE WidgetInstId = 26941)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26942) END FROM WidgetInst WHERE WidgetInstId = 26942)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26963;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26943) END FROM WidgetInst WHERE WidgetInstId = 26943)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26944) END FROM WidgetInst WHERE WidgetInstId = 26944)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26965;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26945) END FROM WidgetInst WHERE WidgetInstId = 26945)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26966;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26946) END FROM WidgetInst WHERE WidgetInstId = 26946)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26967;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 26947) END FROM WidgetInst WHERE WidgetInstId = 26947)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26968;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26983;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26984;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26985;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26986;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26987;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26988;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26991;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26994;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26995;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 26996;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27011;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27012;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27013;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27014;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27015;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27016;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27017;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27020;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27021;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27022;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27023;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27024;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26941) END FROM WidgetInst WHERE WidgetInstId = 26941)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27025;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26942) END FROM WidgetInst WHERE WidgetInstId = 26942)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27026;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26943) END FROM WidgetInst WHERE WidgetInstId = 26943)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26944) END FROM WidgetInst WHERE WidgetInstId = 26944)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26945) END FROM WidgetInst WHERE WidgetInstId = 26945)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26946) END FROM WidgetInst WHERE WidgetInstId = 26946)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 26947) END FROM WidgetInst WHERE WidgetInstId = 26947)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27067) END FROM WidgetInst WHERE WidgetInstId = 27067) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27074;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27068) END FROM WidgetInst WHERE WidgetInstId = 27068) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27075;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27069) END FROM WidgetInst WHERE WidgetInstId = 27069) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27076;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27070) END FROM WidgetInst WHERE WidgetInstId = 27070) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27077;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27071) END FROM WidgetInst WHERE WidgetInstId = 27071) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27072) END FROM WidgetInst WHERE WidgetInstId = 27072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27073) END FROM WidgetInst WHERE WidgetInstId = 27073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27100;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27067) END FROM WidgetInst WHERE WidgetInstId = 27067) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27068) END FROM WidgetInst WHERE WidgetInstId = 27068) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27069) END FROM WidgetInst WHERE WidgetInstId = 27069) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27104;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27070) END FROM WidgetInst WHERE WidgetInstId = 27070) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27071) END FROM WidgetInst WHERE WidgetInstId = 27071) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27072) END FROM WidgetInst WHERE WidgetInstId = 27072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 27073) END FROM WidgetInst WHERE WidgetInstId = 27073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27118;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27120;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26955) END FROM WidgetInst WHERE WidgetInstId = 26955) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26956) END FROM WidgetInst WHERE WidgetInstId = 26956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27124;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26957) END FROM WidgetInst WHERE WidgetInstId = 26957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26958) END FROM WidgetInst WHERE WidgetInstId = 26958) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26959) END FROM WidgetInst WHERE WidgetInstId = 26959) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26960) END FROM WidgetInst WHERE WidgetInstId = 26960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27128;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 26961) END FROM WidgetInst WHERE WidgetInstId = 26961) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27129;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27130;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27131;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27132;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27133;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27134;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27135;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27136;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27152;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27153;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27382) END FROM WidgetInst WHERE WidgetInstId = 27382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27383) END FROM WidgetInst WHERE WidgetInstId = 27383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27390;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27384) END FROM WidgetInst WHERE WidgetInstId = 27384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27385) END FROM WidgetInst WHERE WidgetInstId = 27385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27386) END FROM WidgetInst WHERE WidgetInstId = 27386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27393;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27387) END FROM WidgetInst WHERE WidgetInstId = 27387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27394;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27388) END FROM WidgetInst WHERE WidgetInstId = 27388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27395;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27382) END FROM WidgetInst WHERE WidgetInstId = 27382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27403;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27383) END FROM WidgetInst WHERE WidgetInstId = 27383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27404;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27384) END FROM WidgetInst WHERE WidgetInstId = 27384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27405;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27385) END FROM WidgetInst WHERE WidgetInstId = 27385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27386) END FROM WidgetInst WHERE WidgetInstId = 27386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27407;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27387) END FROM WidgetInst WHERE WidgetInstId = 27387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27408;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27388) END FROM WidgetInst WHERE WidgetInstId = 27388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27382) END FROM WidgetInst WHERE WidgetInstId = 27382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27417;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27383) END FROM WidgetInst WHERE WidgetInstId = 27383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27418;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27384) END FROM WidgetInst WHERE WidgetInstId = 27384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27385) END FROM WidgetInst WHERE WidgetInstId = 27385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27420;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27386) END FROM WidgetInst WHERE WidgetInstId = 27386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27421;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27387) END FROM WidgetInst WHERE WidgetInstId = 27387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27422;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27388) END FROM WidgetInst WHERE WidgetInstId = 27388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27494) END FROM WidgetInst WHERE WidgetInstId = 27494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27495) END FROM WidgetInst WHERE WidgetInstId = 27495) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27496) END FROM WidgetInst WHERE WidgetInstId = 27496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27497) END FROM WidgetInst WHERE WidgetInstId = 27497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27504;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27498) END FROM WidgetInst WHERE WidgetInstId = 27498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27505;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27499) END FROM WidgetInst WHERE WidgetInstId = 27499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27506;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27500) END FROM WidgetInst WHERE WidgetInstId = 27500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27507;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27494) END FROM WidgetInst WHERE WidgetInstId = 27494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27495) END FROM WidgetInst WHERE WidgetInstId = 27495) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27496) END FROM WidgetInst WHERE WidgetInstId = 27496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27497) END FROM WidgetInst WHERE WidgetInstId = 27497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27518;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27498) END FROM WidgetInst WHERE WidgetInstId = 27498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27519;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27499) END FROM WidgetInst WHERE WidgetInstId = 27499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27520;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27500) END FROM WidgetInst WHERE WidgetInstId = 27500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27521;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27494) END FROM WidgetInst WHERE WidgetInstId = 27494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27495) END FROM WidgetInst WHERE WidgetInstId = 27495) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27496) END FROM WidgetInst WHERE WidgetInstId = 27496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27497) END FROM WidgetInst WHERE WidgetInstId = 27497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27498) END FROM WidgetInst WHERE WidgetInstId = 27498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27499) END FROM WidgetInst WHERE WidgetInstId = 27499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27500) END FROM WidgetInst WHERE WidgetInstId = 27500) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27543;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27545;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27547;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27634) END FROM WidgetInst WHERE WidgetInstId = 27634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27635) END FROM WidgetInst WHERE WidgetInstId = 27635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27636) END FROM WidgetInst WHERE WidgetInstId = 27636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27637) END FROM WidgetInst WHERE WidgetInstId = 27637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27638) END FROM WidgetInst WHERE WidgetInstId = 27638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27639) END FROM WidgetInst WHERE WidgetInstId = 27639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27646;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27640) END FROM WidgetInst WHERE WidgetInstId = 27640) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27647;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27634) END FROM WidgetInst WHERE WidgetInstId = 27634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27635) END FROM WidgetInst WHERE WidgetInstId = 27635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27656;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27636) END FROM WidgetInst WHERE WidgetInstId = 27636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27637) END FROM WidgetInst WHERE WidgetInstId = 27637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27658;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27638) END FROM WidgetInst WHERE WidgetInstId = 27638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27639) END FROM WidgetInst WHERE WidgetInstId = 27639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27640) END FROM WidgetInst WHERE WidgetInstId = 27640) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27634) END FROM WidgetInst WHERE WidgetInstId = 27634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27635) END FROM WidgetInst WHERE WidgetInstId = 27635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27670;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27636) END FROM WidgetInst WHERE WidgetInstId = 27636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27671;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27637) END FROM WidgetInst WHERE WidgetInstId = 27637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27672;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27638) END FROM WidgetInst WHERE WidgetInstId = 27638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27639) END FROM WidgetInst WHERE WidgetInstId = 27639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27674;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27640) END FROM WidgetInst WHERE WidgetInstId = 27640) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27675;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27685;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27686;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27687;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27688;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27774) END FROM WidgetInst WHERE WidgetInstId = 27774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27775) END FROM WidgetInst WHERE WidgetInstId = 27775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27776) END FROM WidgetInst WHERE WidgetInstId = 27776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27777) END FROM WidgetInst WHERE WidgetInstId = 27777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27778) END FROM WidgetInst WHERE WidgetInstId = 27778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27779) END FROM WidgetInst WHERE WidgetInstId = 27779) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27780) END FROM WidgetInst WHERE WidgetInstId = 27780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27774) END FROM WidgetInst WHERE WidgetInstId = 27774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27775) END FROM WidgetInst WHERE WidgetInstId = 27775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27776) END FROM WidgetInst WHERE WidgetInstId = 27776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27777) END FROM WidgetInst WHERE WidgetInstId = 27777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27778) END FROM WidgetInst WHERE WidgetInstId = 27778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27779) END FROM WidgetInst WHERE WidgetInstId = 27779) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27780) END FROM WidgetInst WHERE WidgetInstId = 27780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27774) END FROM WidgetInst WHERE WidgetInstId = 27774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27775) END FROM WidgetInst WHERE WidgetInstId = 27775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27810;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27776) END FROM WidgetInst WHERE WidgetInstId = 27776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27777) END FROM WidgetInst WHERE WidgetInstId = 27777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27778) END FROM WidgetInst WHERE WidgetInstId = 27778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27779) END FROM WidgetInst WHERE WidgetInstId = 27779) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27780) END FROM WidgetInst WHERE WidgetInstId = 27780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27816) END FROM WidgetInst WHERE WidgetInstId = 27816) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27774) END FROM WidgetInst WHERE WidgetInstId = 27774)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27817) END FROM WidgetInst WHERE WidgetInstId = 27817) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27775) END FROM WidgetInst WHERE WidgetInstId = 27775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27824;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27818) END FROM WidgetInst WHERE WidgetInstId = 27818) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27776) END FROM WidgetInst WHERE WidgetInstId = 27776)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27825;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27819) END FROM WidgetInst WHERE WidgetInstId = 27819) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27777) END FROM WidgetInst WHERE WidgetInstId = 27777)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27826;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27820) END FROM WidgetInst WHERE WidgetInstId = 27820) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27778) END FROM WidgetInst WHERE WidgetInstId = 27778)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27827;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27821) END FROM WidgetInst WHERE WidgetInstId = 27821) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27779) END FROM WidgetInst WHERE WidgetInstId = 27779)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27828;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27822) END FROM WidgetInst WHERE WidgetInstId = 27822) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27780) END FROM WidgetInst WHERE WidgetInstId = 27780)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27816) END FROM WidgetInst WHERE WidgetInstId = 27816) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27774) END FROM WidgetInst WHERE WidgetInstId = 27774)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27837;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27817) END FROM WidgetInst WHERE WidgetInstId = 27817) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27775) END FROM WidgetInst WHERE WidgetInstId = 27775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27838;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27818) END FROM WidgetInst WHERE WidgetInstId = 27818) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27776) END FROM WidgetInst WHERE WidgetInstId = 27776)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27839;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27819) END FROM WidgetInst WHERE WidgetInstId = 27819) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27777) END FROM WidgetInst WHERE WidgetInstId = 27777)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27840;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27820) END FROM WidgetInst WHERE WidgetInstId = 27820) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27778) END FROM WidgetInst WHERE WidgetInstId = 27778)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27841;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27821) END FROM WidgetInst WHERE WidgetInstId = 27821) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27779) END FROM WidgetInst WHERE WidgetInstId = 27779)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27842;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27822) END FROM WidgetInst WHERE WidgetInstId = 27822) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27780) END FROM WidgetInst WHERE WidgetInstId = 27780)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27816) END FROM WidgetInst WHERE WidgetInstId = 27816) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27774) END FROM WidgetInst WHERE WidgetInstId = 27774)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27851;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27817) END FROM WidgetInst WHERE WidgetInstId = 27817) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27775) END FROM WidgetInst WHERE WidgetInstId = 27775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27852;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27818) END FROM WidgetInst WHERE WidgetInstId = 27818) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27776) END FROM WidgetInst WHERE WidgetInstId = 27776)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27819) END FROM WidgetInst WHERE WidgetInstId = 27819) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27777) END FROM WidgetInst WHERE WidgetInstId = 27777)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27854;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27820) END FROM WidgetInst WHERE WidgetInstId = 27820) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27778) END FROM WidgetInst WHERE WidgetInstId = 27778)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27855;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27821) END FROM WidgetInst WHERE WidgetInstId = 27821) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27779) END FROM WidgetInst WHERE WidgetInstId = 27779)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 27822) END FROM WidgetInst WHERE WidgetInstId = 27822) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 27780) END FROM WidgetInst WHERE WidgetInstId = 27780)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27870;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27879) END FROM WidgetInst WHERE WidgetInstId = 27879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27880) END FROM WidgetInst WHERE WidgetInstId = 27880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27881) END FROM WidgetInst WHERE WidgetInstId = 27881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27882) END FROM WidgetInst WHERE WidgetInstId = 27882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27883) END FROM WidgetInst WHERE WidgetInstId = 27883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27884) END FROM WidgetInst WHERE WidgetInstId = 27884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 27885) END FROM WidgetInst WHERE WidgetInstId = 27885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27892;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27879) END FROM WidgetInst WHERE WidgetInstId = 27879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27880) END FROM WidgetInst WHERE WidgetInstId = 27880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27908;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27881) END FROM WidgetInst WHERE WidgetInstId = 27881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27909;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27882) END FROM WidgetInst WHERE WidgetInstId = 27882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27910;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27883) END FROM WidgetInst WHERE WidgetInstId = 27883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27911;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27884) END FROM WidgetInst WHERE WidgetInstId = 27884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27912;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 27885) END FROM WidgetInst WHERE WidgetInstId = 27885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27913;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27879) END FROM WidgetInst WHERE WidgetInstId = 27879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27928;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27880) END FROM WidgetInst WHERE WidgetInstId = 27880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27929;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27881) END FROM WidgetInst WHERE WidgetInstId = 27881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27930;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27882) END FROM WidgetInst WHERE WidgetInstId = 27882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27931;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27883) END FROM WidgetInst WHERE WidgetInstId = 27883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27932;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27884) END FROM WidgetInst WHERE WidgetInstId = 27884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27933;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 27885) END FROM WidgetInst WHERE WidgetInstId = 27885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 27934;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27879) END FROM WidgetInst WHERE WidgetInstId = 27879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28005;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27880) END FROM WidgetInst WHERE WidgetInstId = 27880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28006;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27881) END FROM WidgetInst WHERE WidgetInstId = 27881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28007;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27882) END FROM WidgetInst WHERE WidgetInstId = 27882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28008;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27883) END FROM WidgetInst WHERE WidgetInstId = 27883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28009;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27884) END FROM WidgetInst WHERE WidgetInstId = 27884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28010;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 27885) END FROM WidgetInst WHERE WidgetInstId = 27885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28011;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28026;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28032;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28047) END FROM WidgetInst WHERE WidgetInstId = 28047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28048) END FROM WidgetInst WHERE WidgetInstId = 28048) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28049) END FROM WidgetInst WHERE WidgetInstId = 28049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28050) END FROM WidgetInst WHERE WidgetInstId = 28050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28051) END FROM WidgetInst WHERE WidgetInstId = 28051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28052) END FROM WidgetInst WHERE WidgetInstId = 28052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28053) END FROM WidgetInst WHERE WidgetInstId = 28053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28047) END FROM WidgetInst WHERE WidgetInstId = 28047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28075;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28048) END FROM WidgetInst WHERE WidgetInstId = 28048) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28076;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28049) END FROM WidgetInst WHERE WidgetInstId = 28049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28077;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28050) END FROM WidgetInst WHERE WidgetInstId = 28050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28051) END FROM WidgetInst WHERE WidgetInstId = 28051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28052) END FROM WidgetInst WHERE WidgetInstId = 28052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28053) END FROM WidgetInst WHERE WidgetInstId = 28053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28047) END FROM WidgetInst WHERE WidgetInstId = 28047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28048) END FROM WidgetInst WHERE WidgetInstId = 28048) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28049) END FROM WidgetInst WHERE WidgetInstId = 28049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28050) END FROM WidgetInst WHERE WidgetInstId = 28050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28051) END FROM WidgetInst WHERE WidgetInstId = 28051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28100;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28052) END FROM WidgetInst WHERE WidgetInstId = 28052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28053) END FROM WidgetInst WHERE WidgetInstId = 28053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28047) END FROM WidgetInst WHERE WidgetInstId = 28047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28173;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28048) END FROM WidgetInst WHERE WidgetInstId = 28048) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28174;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28049) END FROM WidgetInst WHERE WidgetInstId = 28049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28175;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28050) END FROM WidgetInst WHERE WidgetInstId = 28050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28176;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28051) END FROM WidgetInst WHERE WidgetInstId = 28051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28177;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28052) END FROM WidgetInst WHERE WidgetInstId = 28052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28178;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28053) END FROM WidgetInst WHERE WidgetInstId = 28053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28179;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28201) END FROM WidgetInst WHERE WidgetInstId = 28201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28208;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28202) END FROM WidgetInst WHERE WidgetInstId = 28202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28209;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28203) END FROM WidgetInst WHERE WidgetInstId = 28203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28210;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28204) END FROM WidgetInst WHERE WidgetInstId = 28204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28211;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28205) END FROM WidgetInst WHERE WidgetInstId = 28205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28206) END FROM WidgetInst WHERE WidgetInstId = 28206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28213;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28207) END FROM WidgetInst WHERE WidgetInstId = 28207) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28214;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28201) END FROM WidgetInst WHERE WidgetInstId = 28201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28222;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28202) END FROM WidgetInst WHERE WidgetInstId = 28202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28223;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28203) END FROM WidgetInst WHERE WidgetInstId = 28203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28224;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28204) END FROM WidgetInst WHERE WidgetInstId = 28204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28225;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28205) END FROM WidgetInst WHERE WidgetInstId = 28205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28226;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28206) END FROM WidgetInst WHERE WidgetInstId = 28206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28207) END FROM WidgetInst WHERE WidgetInstId = 28207) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28201) END FROM WidgetInst WHERE WidgetInstId = 28201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28236;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28202) END FROM WidgetInst WHERE WidgetInstId = 28202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28237;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28203) END FROM WidgetInst WHERE WidgetInstId = 28203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28204) END FROM WidgetInst WHERE WidgetInstId = 28204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28239;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28205) END FROM WidgetInst WHERE WidgetInstId = 28205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28240;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28206) END FROM WidgetInst WHERE WidgetInstId = 28206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28241;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28207) END FROM WidgetInst WHERE WidgetInstId = 28207) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28242;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28201) END FROM WidgetInst WHERE WidgetInstId = 28201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28250;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28202) END FROM WidgetInst WHERE WidgetInstId = 28202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28251;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28203) END FROM WidgetInst WHERE WidgetInstId = 28203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28252;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28204) END FROM WidgetInst WHERE WidgetInstId = 28204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28253;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28205) END FROM WidgetInst WHERE WidgetInstId = 28205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28254;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28206) END FROM WidgetInst WHERE WidgetInstId = 28206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28255;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28207) END FROM WidgetInst WHERE WidgetInstId = 28207) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28256;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28201) END FROM WidgetInst WHERE WidgetInstId = 28201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28264;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28202) END FROM WidgetInst WHERE WidgetInstId = 28202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28265;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28203) END FROM WidgetInst WHERE WidgetInstId = 28203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28266;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28204) END FROM WidgetInst WHERE WidgetInstId = 28204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28267;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28205) END FROM WidgetInst WHERE WidgetInstId = 28205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28206) END FROM WidgetInst WHERE WidgetInstId = 28206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28269;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28207) END FROM WidgetInst WHERE WidgetInstId = 28207) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28270;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28201) END FROM WidgetInst WHERE WidgetInstId = 28201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28278;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28202) END FROM WidgetInst WHERE WidgetInstId = 28202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28279;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28203) END FROM WidgetInst WHERE WidgetInstId = 28203) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28280;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28204) END FROM WidgetInst WHERE WidgetInstId = 28204) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28281;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28205) END FROM WidgetInst WHERE WidgetInstId = 28205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28282;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28206) END FROM WidgetInst WHERE WidgetInstId = 28206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28283;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28207) END FROM WidgetInst WHERE WidgetInstId = 28207) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28284;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26654) END FROM WidgetInst WHERE WidgetInstId = 26654) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28292;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26655) END FROM WidgetInst WHERE WidgetInstId = 26655) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28293;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26656) END FROM WidgetInst WHERE WidgetInstId = 26656) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28294;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26657) END FROM WidgetInst WHERE WidgetInstId = 26657) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28295;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26658) END FROM WidgetInst WHERE WidgetInstId = 26658) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28296;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26659) END FROM WidgetInst WHERE WidgetInstId = 26659) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28297;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 26660) END FROM WidgetInst WHERE WidgetInstId = 26660) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28298;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28306) END FROM WidgetInst WHERE WidgetInstId = 28306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28313;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28307) END FROM WidgetInst WHERE WidgetInstId = 28307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28314;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28308) END FROM WidgetInst WHERE WidgetInstId = 28308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28315;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28309) END FROM WidgetInst WHERE WidgetInstId = 28309) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28316;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28310) END FROM WidgetInst WHERE WidgetInstId = 28310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28317;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28311) END FROM WidgetInst WHERE WidgetInstId = 28311) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28318;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28312) END FROM WidgetInst WHERE WidgetInstId = 28312) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28319;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 28331;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 28331;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 28331;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 28331;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 28331;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 28331;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 28332;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 28332;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 28332;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 28332;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 28332;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 28332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28333;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28334;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 28337) END FROM WidgetInst WHERE WidgetInstId = 28337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28339;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 28338) END FROM WidgetInst WHERE WidgetInstId = 28338) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28355;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28356;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28361;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 26256) END FROM WidgetInst WHERE WidgetInstId = 26256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28362;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28367;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28371) END FROM WidgetInst WHERE WidgetInstId = 28371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28373;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28372) END FROM WidgetInst WHERE WidgetInstId = 28372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28374;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28371) END FROM WidgetInst WHERE WidgetInstId = 28371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28372) END FROM WidgetInst WHERE WidgetInstId = 28372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28380;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28385;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28386;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28389) END FROM WidgetInst WHERE WidgetInstId = 28389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28390) END FROM WidgetInst WHERE WidgetInstId = 28390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28389) END FROM WidgetInst WHERE WidgetInstId = 28389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28397;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28390) END FROM WidgetInst WHERE WidgetInstId = 28390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28398;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 28389) END FROM WidgetInst WHERE WidgetInstId = 28389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28403;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 28390) END FROM WidgetInst WHERE WidgetInstId = 28390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28404;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28413) END FROM WidgetInst WHERE WidgetInstId = 28413)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28414) END FROM WidgetInst WHERE WidgetInstId = 28414)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28420;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28413) END FROM WidgetInst WHERE WidgetInstId = 28413)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28414) END FROM WidgetInst WHERE WidgetInstId = 28414)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28443;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28444;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28445;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28446;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28449) END FROM WidgetInst WHERE WidgetInstId = 28449) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28450) END FROM WidgetInst WHERE WidgetInstId = 28450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 28449) END FROM WidgetInst WHERE WidgetInstId = 28449) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 28450) END FROM WidgetInst WHERE WidgetInstId = 28450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28460;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28417) END FROM WidgetInst WHERE WidgetInstId = 28417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 28418) END FROM WidgetInst WHERE WidgetInstId = 28418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28466;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28539) END FROM WidgetInst WHERE WidgetInstId = 28539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28541;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28540) END FROM WidgetInst WHERE WidgetInstId = 28540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28542;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28539) END FROM WidgetInst WHERE WidgetInstId = 28539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28545;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28540) END FROM WidgetInst WHERE WidgetInstId = 28540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28539) END FROM WidgetInst WHERE WidgetInstId = 28539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28540) END FROM WidgetInst WHERE WidgetInstId = 28540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28550;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28553;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28554;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28571) END FROM WidgetInst WHERE WidgetInstId = 28571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28572) END FROM WidgetInst WHERE WidgetInstId = 28572) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28571) END FROM WidgetInst WHERE WidgetInstId = 28571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28577;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28572) END FROM WidgetInst WHERE WidgetInstId = 28572) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28578;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28571) END FROM WidgetInst WHERE WidgetInstId = 28571) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28581;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28572) END FROM WidgetInst WHERE WidgetInstId = 28572) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28582;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28585;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28586;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28611) END FROM WidgetInst WHERE WidgetInstId = 28611) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28613;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28612) END FROM WidgetInst WHERE WidgetInstId = 28612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28611) END FROM WidgetInst WHERE WidgetInstId = 28611) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28617;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28612) END FROM WidgetInst WHERE WidgetInstId = 28612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28618;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28611) END FROM WidgetInst WHERE WidgetInstId = 28611) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28621;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28612) END FROM WidgetInst WHERE WidgetInstId = 28612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28622;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28651) END FROM WidgetInst WHERE WidgetInstId = 28651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28652) END FROM WidgetInst WHERE WidgetInstId = 28652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28654;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28651) END FROM WidgetInst WHERE WidgetInstId = 28651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28652) END FROM WidgetInst WHERE WidgetInstId = 28652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28658;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28651) END FROM WidgetInst WHERE WidgetInstId = 28651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28652) END FROM WidgetInst WHERE WidgetInstId = 28652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28662;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28663) END FROM WidgetInst WHERE WidgetInstId = 28663) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28651) END FROM WidgetInst WHERE WidgetInstId = 28651)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28664) END FROM WidgetInst WHERE WidgetInstId = 28664) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28652) END FROM WidgetInst WHERE WidgetInstId = 28652)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28663) END FROM WidgetInst WHERE WidgetInstId = 28663) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28651) END FROM WidgetInst WHERE WidgetInstId = 28651)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28664) END FROM WidgetInst WHERE WidgetInstId = 28664) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28652) END FROM WidgetInst WHERE WidgetInstId = 28652)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28670;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28663) END FROM WidgetInst WHERE WidgetInstId = 28663) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28651) END FROM WidgetInst WHERE WidgetInstId = 28651)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 28664) END FROM WidgetInst WHERE WidgetInstId = 28664) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 28652) END FROM WidgetInst WHERE WidgetInstId = 28652)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28674;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28681) END FROM WidgetInst WHERE WidgetInstId = 28681) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28682) END FROM WidgetInst WHERE WidgetInstId = 28682) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28681) END FROM WidgetInst WHERE WidgetInstId = 28681) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28682) END FROM WidgetInst WHERE WidgetInstId = 28682) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28690;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28681) END FROM WidgetInst WHERE WidgetInstId = 28681) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28695;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28682) END FROM WidgetInst WHERE WidgetInstId = 28682) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28681) END FROM WidgetInst WHERE WidgetInstId = 28681) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28682) END FROM WidgetInst WHERE WidgetInstId = 28682) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28729) END FROM WidgetInst WHERE WidgetInstId = 28729) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28731;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28730) END FROM WidgetInst WHERE WidgetInstId = 28730) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28732;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28729) END FROM WidgetInst WHERE WidgetInstId = 28729) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28737;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 28730) END FROM WidgetInst WHERE WidgetInstId = 28730) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28729) END FROM WidgetInst WHERE WidgetInstId = 28729) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 28730) END FROM WidgetInst WHERE WidgetInstId = 28730) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28729) END FROM WidgetInst WHERE WidgetInstId = 28729) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 28730) END FROM WidgetInst WHERE WidgetInstId = 28730) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28766;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28773) END FROM WidgetInst WHERE WidgetInstId = 28773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 28774) END FROM WidgetInst WHERE WidgetInstId = 28774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28773) END FROM WidgetInst WHERE WidgetInstId = 28773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28774) END FROM WidgetInst WHERE WidgetInstId = 28774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28773) END FROM WidgetInst WHERE WidgetInstId = 28773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28774) END FROM WidgetInst WHERE WidgetInstId = 28774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28773) END FROM WidgetInst WHERE WidgetInstId = 28773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28774) END FROM WidgetInst WHERE WidgetInstId = 28774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28773) END FROM WidgetInst WHERE WidgetInstId = 28773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28791;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28774) END FROM WidgetInst WHERE WidgetInstId = 28774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28792;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28773) END FROM WidgetInst WHERE WidgetInstId = 28773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 28774) END FROM WidgetInst WHERE WidgetInstId = 28774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 28331) END FROM WidgetInst WHERE WidgetInstId = 28331) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 28332) END FROM WidgetInst WHERE WidgetInstId = 28332) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 26259) END FROM WidgetInst WHERE WidgetInstId = 26259)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28803) END FROM WidgetInst WHERE WidgetInstId = 28803) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28805;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 28804) END FROM WidgetInst WHERE WidgetInstId = 28804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28806;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28858) END FROM WidgetInst WHERE WidgetInstId = 28858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 28858) END FROM WidgetInst WHERE WidgetInstId = 28858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28861;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28867) END FROM WidgetInst WHERE WidgetInstId = 28867) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28868) END FROM WidgetInst WHERE WidgetInstId = 28868) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28872;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28869) END FROM WidgetInst WHERE WidgetInstId = 28869) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28873;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 28870) END FROM WidgetInst WHERE WidgetInstId = 28870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28874;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 28867) END FROM WidgetInst WHERE WidgetInstId = 28867) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28879;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 28868) END FROM WidgetInst WHERE WidgetInstId = 28868) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28880;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 28869) END FROM WidgetInst WHERE WidgetInstId = 28869) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28881;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 28870) END FROM WidgetInst WHERE WidgetInstId = 28870) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28882;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 28901) END FROM WidgetInst WHERE WidgetInstId = 28901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28902;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 28901) END FROM WidgetInst WHERE WidgetInstId = 28901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28904;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 28909) END FROM WidgetInst WHERE WidgetInstId = 28909) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28910;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 28918) END FROM WidgetInst WHERE WidgetInstId = 28918) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28919;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 28918) END FROM WidgetInst WHERE WidgetInstId = 28918) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28921;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 28940) END FROM WidgetInst WHERE WidgetInstId = 28940) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 28940) END FROM WidgetInst WHERE WidgetInstId = 28940) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 28948) END FROM WidgetInst WHERE WidgetInstId = 28948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28949;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 28957) END FROM WidgetInst WHERE WidgetInstId = 28957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28958;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 28957) END FROM WidgetInst WHERE WidgetInstId = 28957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28960;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 28979) END FROM WidgetInst WHERE WidgetInstId = 28979) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28980;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 28979) END FROM WidgetInst WHERE WidgetInstId = 28979) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 28987) END FROM WidgetInst WHERE WidgetInstId = 28987) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28988;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 28996) END FROM WidgetInst WHERE WidgetInstId = 28996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 28996) END FROM WidgetInst WHERE WidgetInstId = 28996) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 28999;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 29018) END FROM WidgetInst WHERE WidgetInstId = 29018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 29018) END FROM WidgetInst WHERE WidgetInstId = 29018) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29021;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 29026) END FROM WidgetInst WHERE WidgetInstId = 29026) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 29035) END FROM WidgetInst WHERE WidgetInstId = 29035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29036;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 29035) END FROM WidgetInst WHERE WidgetInstId = 29035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29038;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 29057) END FROM WidgetInst WHERE WidgetInstId = 29057) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 29057) END FROM WidgetInst WHERE WidgetInstId = 29057) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 29065) END FROM WidgetInst WHERE WidgetInstId = 29065) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 29074) END FROM WidgetInst WHERE WidgetInstId = 29074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29075;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 29074) END FROM WidgetInst WHERE WidgetInstId = 29074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29077;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 29096) END FROM WidgetInst WHERE WidgetInstId = 29096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 29096) END FROM WidgetInst WHERE WidgetInstId = 29096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 29104) END FROM WidgetInst WHERE WidgetInstId = 29104) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 29113) END FROM WidgetInst WHERE WidgetInstId = 29113) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 29113) END FROM WidgetInst WHERE WidgetInstId = 29113) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 29174) END FROM WidgetInst WHERE WidgetInstId = 29174) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29175;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 29174) END FROM WidgetInst WHERE WidgetInstId = 29174) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29177;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 29182) END FROM WidgetInst WHERE WidgetInstId = 29182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29183;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 29191) END FROM WidgetInst WHERE WidgetInstId = 29191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29192;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 29191) END FROM WidgetInst WHERE WidgetInstId = 29191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29194;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 29216) END FROM WidgetInst WHERE WidgetInstId = 29216) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29217;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 29216) END FROM WidgetInst WHERE WidgetInstId = 29216) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 29224) END FROM WidgetInst WHERE WidgetInstId = 29224) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29225;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 29233) END FROM WidgetInst WHERE WidgetInstId = 29233) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29234;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 29233) END FROM WidgetInst WHERE WidgetInstId = 29233) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29236;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Restart File' AND WidgetInstId = 29258) END FROM WidgetInst WHERE WidgetInstId = 29258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29259;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 29258) END FROM WidgetInst WHERE WidgetInstId = 29258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29261;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 29266) END FROM WidgetInst WHERE WidgetInstId = 29266) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29267;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Frequency' AND WidgetInstId = 29275) END FROM WidgetInst WHERE WidgetInstId = 29275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29276;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified Times' AND WidgetInstId = 29275) END FROM WidgetInst WHERE WidgetInstId = 29275) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 29278;


